package com.sikao.app.dao;

import android.content.Context;

import com.sikao.app.bean.AddCollectBean;
import com.sikao.app.bean.BidListBean;
import com.sikao.app.net.OnNetBackListener;
import com.sikao.app.net.SpotsCallBack;
import com.squareup.okhttp.Response;

/**
 * Created by Sun on 2016/9/23
 * [39-90]投标记录
 */
public class BidListModel extends BaseModel {
    public BidListModel(Context context, OnNetBackListener listener) {
        super(context, listener);
    }

    @Override
    public void request(String data, boolean isShow) {
        String []array = {"trade","mall","ApiBid","bidList",time,data};

        map = getMap(array);
        post(map,new SpotsCallBack<BidListBean>(context,isShow){

            @Override
            public void onSuccess(Response response, BidListBean result) {
                onNetBackListener.netBack(result);
            }

            @Override
            public void onError(Response response, int code, Exception e) {
            }
        });
    }
}
